import { createRouter, createWebHashHistory } from "vue-router";

import One from '../views/One.vue';
import Two from '../views/Two.vue';
import Index from '../views/Index.vue'
import Class from '../views/Class.vue'

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: "/", component: One },
    { path: "/two", component: Two },
    { path: "/index", component: Index,
      children:[
        {
          path:'class',
          component: Class
        }
      ] },
  ] // 路由配置规则数组
});


